package com.fjrcloud.entity;

import com.fjrcloud.utils.StatusUtils;

import java.io.Serializable;

/**
 * Created by Trun on 2016-06-29.
 */

public class ResponseBean implements Serializable {
    private String code;
    private String msg;
    private Object data;

    public ResponseBean(StatusUtils statusUtils, Object data) {
        if (statusUtils != null) {
            this.code = statusUtils.getCode();
            this.msg = statusUtils.getValue();
        }
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseBean{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
